package com.hzqy.persistence.dao.system;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.StatDataListenVo;
import com.hzqy.web.vo.SysProcessLogsVo;
import com.hzqy.web.vo.content.CmContentLedgerVo;

@Repository
public class SysProcessLogsDao  extends PersistenceDao<SysProcessLogsVo, Integer>{
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	public int insertProcessLogs(SysProcessLogsVo sysProcessLogsVo) {
		return getSqlSession().insert(this.getNamespace() + "insertProcessLogs", sysProcessLogsVo);
	}
	
	public String selectProcessName(String f_pa_url) {
		return getSqlSession().selectOne(this.getNamespace() + "selectProcessName", f_pa_url);
	}

	public List<SysProcessLogsVo> selectProcessLogsVoList(Map<String,Object> map) {
		return getSqlSession().selectList(this.getNamespace() + "selectProcessLogsVoList", map);
	}

	public int selectProcessLogsCount(SysProcessLogsVo sysProcessLogsVo) {
		return getSqlSession().selectOne(this.getNamespace() + "selectProcessLogsVoCount", sysProcessLogsVo);
	}
	
	public int selectContentLedgerListCount(CmContentLedgerVo cmContentLedgerVo) {
		return getSqlSession().selectOne(this.getNamespace()+"selectContentLedgerListCount", cmContentLedgerVo);
	}

	public List<StatDataListenVo> selectContentLedgerList(Map<String, Object> map) {
		return getSqlSession().selectList(this.getNamespace() + "selectContentLedgerList", map);
	}
}